package state;

public class LState implements State {
    @Override
    public void doSomething(Person person) {
        if ( person.getHour() == 12) {
            System.out.println("eat lunch");
        } else{
            person.setState(new DState());
            person.doSomething();
        }
    }
}
